import 'package:flutter/material.dart';

abstract class LanguageConfig {
//  static List<Locale> supportLocales = [
//    Locale("zh", "CH"),
//    Locale("en", "US")
//  ];

//  static Map<String, dynamic> supportLanguage = {
//    "zh": {"code": "zh", "country_code": "CH"},
//    "en": {"code": "en", "country_code": "US"}
//  };

//  static Map<String, String> defaultLanguage = {
//    "code": "en",
//    "country_code": "US"
//  };

//  static Locale supportLocale = Locale("en", "US");

  List<Locale> supportLocales() {
    return [
      Locale("zh", "CH"),
      Locale("en", "US")
    ];
  }

  Map<String, dynamic> supportLanguage() {
    return {
      "zh": {"code": "zh", "country_code": "CH"},
      "en": {"code": "en", "country_code": "US"}
    };
  }

  Map<String, String> defaultLanguage() {
    return {
      "code": "en",
      "country_code": "US"
    };
  }

  Locale supportLocale = Locale("zh", "CH");

}